package com.xuchaotong.mapstruct;

import java.util.List;
import org.mapstruct.Named;

/**
 * @author EASON.TONG
 * @create 2021/06/05
 **/
public interface BaseConvert<Source,Target> {

    @Named(value = "toTarget")
    Target toTarget(Source source);


    List<Target> toEntityList(List<Source> list);
}
